Simulations of liquid metal flows over plasma-facing component edges and application to beryllium melt events in JET