On square integrable solutions and principal and antiprincipal solutions for linear Hamiltonian systems