An analytical method for the determination of the roughness parameters over complex regions