An Extended Tissue-like P System Based on Membrane Systems and Quantum-Behaved Particle Swarm Optimization for Image Segmentation