Over 300 migrants were rescued in seven dinghies off Spain's southern coast after attempting to cross the sea from Morocco, the Spanish maritime rescue service says.