Stress engineering in amorphous silicon thin films