Three-dimensional ion beam-profile monitor for storage rings