In-situ and ex-situ studies of molybdenum thin films deposited by rf and dc magnetron sputtering