Functional characterization of planar sensors with active edges using laser and X-ray beam scans