Design and TCAD simulation of planar p-on-n active-edge pixel sensors for the next generation of FELs