In situ studies of spin-coated polymer films