Instability of current and N-shaped current-voltage characteristic in a silicon p-i-n diode subjected to a magnetic field