Electronic phase transition and enhanced optoelectronic performance of lead-free halide perovskites AGeI3 (A = Rb, K) under pressure