Method for controlling an elevator system