Investigation of the hydrogen and impurity contents of amorphous silicon by secondary ion mass spectrometry