Tunable graphene-based terahertz absorber via an external magnetic field