a diaphragm is used for preventing pregnancies