Nicaragua detains opposition leader in pre-election crackdown