Characterization of polystyrene and doped polymethylmethacrylate thin layers