Automatic phase field regularisation of interfacial problems