Automated Reasoning for Modal Logics