Anomaly-free dark matter models with one-loop neutrino masses and a gauged U(1) symmetry