patches: added option 'fixedcomps' to patches_projerror and patches_reconstruct, to compute the minimum number of components for a given RMSEmax