If \( \theta \) is an angle such that \( \sin(\theta + 45^\circ) = \cos(2\theta - 30^\circ) \), find the value of \( \theta \). Let's think step by step and output the final answer within \boxed{}.
user