Combining ptychographical algorithms with the Hybrid Input-Output (HIO) algorithm