A LEPTONIC–HADRONIC MODEL FOR THE AFTERGLOW OF GAMMA-RAY BURST 090510