Periodic Approximations And Spectral Analysis Of The Koopman Operator: Theory And Applications