Generation and detection of spin polarization in parallel coupled double quantum dots connected to four terminals