Fundamental parameters of the moderately young open clusters NGC 5999, NGC 6031, Ruprecht 115 and Ruprecht 120