when are both valves closed during cardiac cycle