Why has South Korea’s president suddenly declared martial law?

The move – invoking temporary military rule – has been roundly condemned by opponents and some within his own party.