A programmable front-end system for arrays of bolometers