Proton-proton correlations in distinguishing the two-proton emission mechanism of 23 Al and 22 Mg