Surface stabilization determines a classical versus non-classical nucleation pathway during particle formation