Voltage-controllable multifunctional spin polarizer based on side-coupled quantum dots