Melting and solidification behavior of YBa2Cu3O7−x