Electromagnetic reactions from coupled-cluster theory