Principles of neural shape coding in area V2