Characterization of superconducting single photon detectors fabricated on MgO substrates