Development of retarding field analyzer and its applications to study energy distribution of field emitted electrons from ZnO tetrapods and LaB6 emitters