A method and apparatus for controlling an elevator group