A new method for the determination of optical band gap and the nature of optical transitions in semiconductors