Rare radiative charm decays within the standard model and beyond