A novel beam-profile monitor for storage rings