Origin of visible photoluminescence of Si-rich and N-rich silicon nitride films