Application of a variational method to flow over a flat plate in the entrance region with variable physical properties