Convective stability of a horizontal rotating fluid layer with distributed heat sources