Ricci and Scalar Curvature Rigidity of the Hemisphere