Solving the unimolecular master equation with a weighted subspace projection method