The AMS-RICH velocity and charge reconstruction