what is the formula for number of spectral lines due to transition of electrons from n-th orbit to lower orbit?