Helium-burning flashes on accreting neutron stars - Effects of stellar mass, radius, and magnetic field