Electronic structure and orientation of anthracene on Ag(111)