Royal Navy commander cleared of racial abuse over misheard word