Compact and extended structure in B2 radio sources of intermediate strength