Prospects for spectral CT with Medipix detectors