In-situ beam metrology in shaped-beam lithography tool