Measurement of branching fractions in radiative B decays to eta K gamma and search for B decays to eta-prime K gamma