Ridge-Valley Lines on Meshes via Implicit Surface Fitting