Quasi-stellar objects in the ALHAMBRA survey I. Photometric redshift accuracy based on 23 optical-NIR filter photometry