Great Britain cyclist Chris Hoy says winning his sixth gold medal in front of a home crowd in London was the perfect way to end his Olympic career.