An early warning generation and emergency advisory system and its application to power plants