Deriving Receptive Fields Using an Optimal Encoding Criterion