Physical and optical study of alkali and alkaline earth metals based phosphate glasses