6D anomaly-free matter spectrum in F-theory on singular spaces