Polaron transition of surface electrons on liquid He-4 films in zero and quantizing magnetic fields