Enhancement of parity and time-invariance violating effects in compound nuclei