Stabilisation/ hardening of resist films