Spanish astronomers discover two new planets in solar system