An inquest has been opened after a three-year-old girl from New Tredegar died after drowning in a swimming pool while on holiday on Mallorca.