Optimal configuration of PTZ camera networks based on visual quality assessment and coverage maximization