Binomial edge ideals and applications