Optimized Photogrammetric Network Design with Flight Path Planner for UAV-based Terrain Surveillance