Polaron model of the formation of hydrated electron states