Rational Design of Molecular Hole-Transporting Materials for Perovskite Solar Cells: Direct versus Inverted Device Configurations