Green and ultraviolet quasi-phase-matched second harmonic generation in bulk periodically-poled KTiOPO4