Carbon-rich planets made of diamonds may exist beyond our solar system, study says