Artificial cochlea for mechanical processing of sound