Conditional expectations and idempotent copulas