Constructing efficient channels for ideal observers using the conjugate gradient method