Navalny uses court appearance to attack Putin