A submarine can float, sink, or remain at a constant depth in water. How does it control its buoyancy?