Measurements of strain during vapour deposition of thin films and multilayers