Finite-size geometric entanglement from tensor network algorithms