Quarkonium production in ALICE at the LHC