P systems with active membranes: Trading time for space