Proton effects in charge-coupled devices