Design and first tests of an acoustic positioning and detection system for KM3NeT