Multiscale scanning with nuisance parameters