Growth of environmentally stable transition metal selenide films