Mirkarimi pleads guilty to misdemeanor