Ex-South Korean president released on bail