Critical behaviour of thin films with quenched impurities