Vice-Admiral Sir Robert Hill, who has died aged 88, was a consummate naval engineer, as well as an inventor, jazz musician and theatre enthusiast.