Virasoro constraints and the Chern classes of the Hodge bundle