Hydrogen concentration profiles and chemical bonding in silicon nitride