how does the movement of the diaphragm cause air to go in and out of the lungs