Efficient and direct estimation of a neural subunit model for sensory coding