Improved operational lifetime of semiconducting polymer lasers by encapsulation