Multipole operators in semileptonic weak and electromagnetic interactions with nuclei