SRB measures and Pesin’s entropy formula for endomorphisms