Size effects on the second order ferroelectric phase transition in a thin film with non-symmetric boundary conditions