Search for neutrinoless double beta decay with CUORICINO and prospects for CUORE