Energy System Planning and Grid Integration