NGC 6404 and 6583: two neglected intermediate-age open clusters located in the Galactic Centre direction