Optimum waveform design for radar target detection in various scenarios using cross ambiguity function