Method of determining depth of compressions during cardio-pulmonary resuscitation