An instrument for in-situ stress measurement in thin films during growth