Measurement of B decays to phi K gamma