Applying a new interatomic potential for the modelling of hexagonal and orthorhombic YMnO3