Surface free energy for systems with integrable boundary conditions