Optimizing chemiluminescence and fluorescence imaging for protein detection