Computation of optimal unstable structures for a numerical weather prediction model