Analysis of lateral shearing interferometry without self-imaging limitations