Development of a Versatile Bunch-length Monitor for Electron Beams at ASTA