Frames and weak frames for unbounded operators