Effects of post-growth heat treatment on electronic phase diagrams and critical current densities of Ba(Fe1−xCox)2As2 and BaFe2(As1−xPx)2 single crystals