Development and analysis of energy model for Kerala with emphasis on optimal planning in power sector