Proton stripping to particle-hole states in 40Ca and 42Ca